﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BaoJian.chifeng
{
    public partial class Default : System.Web.UI.Page
    {
        public string Region = "chifeng";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Header1.Region = "chifeng";
                if (HttpContext.Current.Request.Cookies["region"] != null)
                {
                    HttpContext.Current.Request.Cookies["region"].Expires =
                        DateTime.Now.AddDays(-1);
                }

                HttpCookie cookie = new HttpCookie("region", "chifeng");
                HttpContext.Current.Response.Cookies.Add(cookie);
            }
        }
    }
}
